package com.ldg.seckill.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ldg.seckill.entity.TbSeckillGoods;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Author: Liudao
 * @Date: 2022-10-21-16:55
 * @Description:
 */
public interface TbSeckillGoodsService extends IService<TbSeckillGoods>{
    //根据秒杀时间段查询秒杀商品
    List<TbSeckillGoods> findSeckillGoodsByDate(String dateStr);

    //根据查询条件查询秒杀商品
    List<TbSeckillGoods> findGoodsList(QueryWrapper<TbSeckillGoods> wrapper);

    TbSeckillGoods findById(String secKillId);
}
